﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<Excell_On_Services.ViewModels.ClientModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div class="content-box"><!-- Start Content Box -->
        <div class="content-box-header">
            <p>Edit</p>
            <div>
                <%: Html.ActionLink("Edit", "Edit", new {id = Model.ClientID}) %> |
                <a id="delete-post" href="#">Delete this post</a> | 
                <%: Html.ActionLink("Back to List", "Index") %>
            </div>
        </div>
        <div class="content-box-content">
			<div class="tab-content default-tab" id="tab1">
                <table cellpadding="5" id="add_new_item">
                        <tbody>
                            <tr>
                                <td width="20%"><%:Html.HiddenFor(model => model.ClientID) %></td>
                                <td><%: Model.ClientID %></td>
                            </tr>
                            <tr>
                                <td class="ani_text"><%: Html.LabelFor(model => model.CompanyName) %></td>
                                <td><%: Model.CompanyName%></td>
                            </tr>
                            <tr>
                                <td class="ani_text"><%: Html.LabelFor(model => model.Address) %></td>
                                <td><%: Model.Address%></td>
                            </tr>
                            <tr>
                                <td class="ani_text"><%: Html.LabelFor(model => model.Phone)%></td>
                                <td><%: Model.Phone%></td>
                            </tr>
                            <tr>
                                <td class="ani_text"><%: Html.LabelFor(model => model.Email)%></td>
                                <td><%: Model.Email%></td>
                            </tr>
                            <tr>
                                <td ><%: Html.LabelFor(model => model.IsLock)%></td>
                                <td align="left"><%: Model.IsLock%></td>
                            </tr>
                            <tr>
                                <td colspan="2"><%: Html.LabelFor(model => model.ProductDescription)%></td>
                            </tr>
                            <tr>
                                
                                <td colspan="2"><%: Model.ProductDescription%></td>
                            </tr>
                            <tr>
                                <td colspan="2"><%: Html.LabelFor(model => model.Description)%></td>
                            </tr>
                            <tr>
                                <td colspan="2"><%: Model.Description%></td>
                            </tr>
                           
                        </tbody>
                    </table>
            </div>
        </div>
    </div>

<%--    <script type="text/javascript">
        onLoad(function() {
            $("#delete-post").click(function(event) {
                event.preventDefault();
                if (confirm("Are you sure you want to delete this post and all of its comments?")) {
                    $.ajax({
                        type: "POST",
                        url: '<%= Url.Action("Delete") %>',
                        data: {entryID: <%:Model.DepartmentID %>},
                        success: function(result) {
                            window.location = '<%= Url.Action("Index") %>';
                        }
                    });
                }
            });
            comments.init(<%: Model.DepartmentID %>);
        });
    </script>--%>
</asp:Content>

